package com. hafu. service;
import com. hafu. dao.GysInfoDao;
import com. hafu. model. GysInfo;
import java. util. ArrayList;
public class GysInfoService{
    private GysInfoDao gysInfoDao = new GysInfoDao();
    public Boolean addGysInfo(GysInfo gys)
    {
        return gysInfoDao. addGysInfo(gys);
    }
    public Boolean deleteGysInfo(int id)
    {
        return gysInfoDao. deleteGysInfo(id);
    }
    public ArrayList<GysInfo> getGysInfoByName(GysInfo gys)
    {
        return gysInfoDao. getGysInfoByName( gys);
    }
    public Boolean updateGysInfo(GysInfo gys)
    {
        return gysInfoDao. updateGysInfo( gys);
    }
}